package com.chagee.store.operation.api.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Objects;

/**
 * ai分析问题类型
 * @Author : hk
 * @Date : 2024/5/13
 */

@Getter
@AllArgsConstructor
public enum ForewarningTypeEnum {

	ORDER_ACCEPTANCE_FOREWARNING("1", "打烊验收预警"),

	;
	private final String type;
	private final String desc;


	public static ForewarningTypeEnum queryByType(String type) {
		for (ForewarningTypeEnum value : values()) {
			if (Objects.equals(type, value.getType())) {
				return value;
			}
		}
		return null;
	}
}
